<#list page.content as c>
<ul class="cmt_list" style="">
    <li class="_j_citem" data-cid="501072" data-username="${c.username}">
        <a href="/u/31184851.html" class="photo">
            <img src="${c.headUrl!}"></a>
        <a
                href="/u/31184851.html" class="user">${c.username}
        </a>
        <a href="/u/31184851.html" class="level">Level.${c.level}
        </a>
        <a
               role="button" href="#maodian" class="_j_reply"  data-username="${c.username}">回复
        </a>
        <span class="date">${c.createTime?string('yyyy-MM-dd HH:ss')}</span>
        <p>${c.content!}</p>
    </li>
</ul>
</#list>
<script>
    $(function () {
        $("._j_reply").click(function () {
           var username = $(this).attr("data-username");
            $("#content").html('回复'+ username + ':');
        })
    })
</script>
<script type="text/javascript" src="/mall/jqPaginator.js"></script>
<div style="float: right">
    <div style="float: left;" ><span style="line-height:30px"> 共${page.totalPages!}页 / ${page.totalElements}条&nbsp;&nbsp;&nbsp;</span></div>
    <div id="pagination" class="jq-pagination" style="display: inline;"></div>
</div>
<script>
    $("#pagination").jqPaginator({
                totalPages: ${page.totalPages!0},
                visiblePages: 5,
                currentPage: ${page.number+1}||1,
            prev: '<a class="prev" href="javascript:void(0);">上一页<\/a>',
            next: '<a class="next" href="javascript:void(0);">下一页<\/a>',
            page: '<a href="javascript:void(0);">{{page}}<\/a>',
            last: '<a class="last" href="javascript:void(0);" >尾页<\/a>',
            onPageChange: function(page, type) {
        if(type == 'change'){
            $("#currentPage").val(page);
            $("#searchForm").submit();
        }
    }
    })
</script>
<#--<script>
    $("#pagination").jqPaginator({
                totalPages: ${page.totalPages!0},
                visiblePages: 5,
                currentPage: ${page.number+1} || 1,
            prev:
    '<a class="prev" href="javascript:void(0);">上一页<\/a>',
            next:
    '<a class="next" href="javascript:void(0);">下一页<\/a>',
            page:
    '<a href="javascript:void(0);">{{page}}<\/a>',
            last:
    '<a class="last" href="javascript:void(0);" >尾页<\/a>',
            onPageChange:
    function (page, type) {
        if (type == 'change') {
            $("#currentPage").val(page);
            $("#searchForm").submit();
        }
    }
    })
</script>
<div style="float: right">
    <div style="float: left;"><span style="line-height:30px"> 共${page.totalPages!}页 / ${page.totalElements}条&nbsp;&nbsp;&nbsp;</span>
    </div>
    <div id="pagination" class="jq-pagination" style="display: inline;"></div>
</div>-->
<#--<div class="page _j_comment_pagination">
    <div class="pagin">
        <span>${page.totalPages!}/${page.totalElements}</span>
        <a title="下一页" href="#" class="btn-right _j_pageitem" data-page=${(page.nextPageable)!}>
        </a>
    </div>
</div>-->


<#--<script type="text/x-jquery-tmpl" id="_j_comment_item">
<ul class="cmt_list">
{{each(i, comment) comment_list}}
    <li class="_j_citem" data-cid="${comment.id}" data-username="${comment.user.name}">
        <a href="/u/${comment.uid}.html" class="photo"><img src="${comment.user.logo_48}"></a>
        <a href="/u/${comment.uid}.html" class="user">${comment.user.name}</a>
        <a href="/u/${comment.uid}.html" class="level">LV.${comment.user.user_lv}</a>
        <a href="#" class="_j_reply">回复</a>
        <span class="date">${comment.ymdhitime}</span>
        <p>${comment.content}</p>
    </li>
{{/each}}
</ul>
</script>-->
<script>
    M.closure(function (require) {
        var MComment = require("/js/activity/MComment");
        new MComment({
            "objid": "0",
            "pubLogoSize": "w48",
            "containerID": "_j_comment_cnt",
            "commentItemTmpl": "_j_comment_item",
            "id": "activity_comment",
            "appid": "70",
            "pagiTmpl": "_j_pagitmpl",
            "cSize": "6",
            "cDisplayNum": "1",
            "_uid": "31184851"
        });
    });
</script>


